package com.tarena.luban.worker.server.repository.impl;

import com.tarena.luban.worker.server.dao.TestDao;
import com.tarena.luban.worker.server.repository.TestRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * spring
 *  Controller Service Repository Comonent Configuration Bean ComponentScan
 *  Import ImportResource Value Autowired.....
 * springmvc
 *  GetMapping/Post/Put... ResponseBody RestController RequestBody RequestParam
 *  PathVariable....
 * springboot
 *  SpringBootApplication ConditionalOnClass........
 */





@Repository
public class TestRepositoryImpl implements TestRepository {
    @Autowired(required = false)
    private TestDao testDao;
    @Override
    public Integer getWorkerCount() {
        return testDao.getWorkerCount();
    }
}
